﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Betop.Lib.Core.User
{
    [DataContract]
    public partial class OnlineUserInfo
    {
        public const string TABLE_NAME = "OnlineUser";
        public const string INSERT_SQL = "insert into OnlineUser ( [ID], [Name], [DeptName], [IP], [LastVisitTime]) values ( @ID, @Name, @DeptName, @IP, @LastVisitTime)";
        public const string UPDATE_SQL = "update OnlineUser set  [ID] = @ID, [Name] = @Name, [DeptName] = @DeptName, [IP] = @IP, [LastVisitTime] = @LastVisitTime where ID = @ID";
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        /// 
        [DataMember]
        public String Name
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        /// 
        [DataMember]
        public String DeptName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        /// 
        [DataMember]
        public String IP
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        /// 
        [DataMember]
        public DateTime LastVisitTime
        {
            get;
            set;
        }
    }

}
